package main;

//Nikolas Wolfe
//2/9/2009
//CIS 4930
//Towers of Hanoi

/*
 * This class implements a basic disk that sits on a tower of Hanoi
 */

public class Disk
{
	private Integer value;
	private HanoiTower prevTower;
	private Disk prevDisk;
	
	public Disk(Integer value)
	{
		this.value = value;
	}
	
	public int getValue()
	{
		return value.intValue();
	}

	// previous tower location
	public HanoiTower getPrevTower()
	{
		return prevTower;
	}

	public void setPrevTower(HanoiTower prevTower)
	{
		this.prevTower = prevTower;
	}

	// previous disk location
	public Disk getPrevDisk()
	{
		return prevDisk;
	}

	public void setPrevDisk(Disk prevDisk)
	{
		this.prevDisk = prevDisk;
	}
	
	public String toString()
	{
		return "" + value.intValue();
	}
}
